<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core">

<h:head>
	<title>祖龙娱乐  - BI系统</title>
	<link href="../../css/component.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="../../js/highcharts.js"></script>
	<script type="text/javascript" src="../../js/drawChart.js"></script>
</h:head>

<h:body>
	<ui:param name="bean" value="#{auanyCreateorderFlowAction}" />
	
	<span class="pagetitle">流水查询 —— 创建订单流水</span>
	<p:separator />
	
	<!-- 右侧页面顶部查询部分 -->
	<h:form id="fsearch">
		<p:growl id="growl" showDetail="true" sticky="true" />
		
		<p:dataTable id="dlist0" value="#{bean}" scrollable="true" resizableColumns="true" paginator="false" style="text-align:center;">
			<p:column headerText="开始日期" styleClass="column" style="width:170px">
				<p:calendar value="#{bean.dateStart}" mode="popup" pattern="yyyy-MM-dd" />
			</p:column>
			<p:column headerText="结束日期" styleClass="column" style="width:170px">
				<p:calendar value="#{bean.dateEnd}" mode="popup" pattern="yyyy-MM-dd" />
			</p:column>
			<p:column headerText="区服" styleClass="column" style="width:120px">
				<p:selectOneMenu id="serverSel" styleClass="queryServer" value="#{bean.queryServer}">
			         <f:selectItems value="#{bean.serverItmes}" />
		        </p:selectOneMenu>
			</p:column>
			<p:column headerText="au服务器编号" styleClass="column" style="width:90px">
				<h:inputText value="#{bean.queryBean.auanyserverid}"   style="width:94%"/>
			</p:column>
			<p:column headerText="订单类型" styleClass="column" style="width:90px">
				<p:selectOneMenu value="#{bean.queryBean.ordertype}">
			         <f:selectItem itemLabel="游戏内订单" itemValue="1" />
			         <f:selectItem itemLabel="直冲订单" itemValue="2" />
		        </p:selectOneMenu>
			</p:column>
			<p:column headerText="全用户名" styleClass="column" style="width:90px">
				<h:inputText value="#{bean.queryBean.fulluseridentity}"   style="width:94%"/>
			</p:column>
			<p:column headerText="角色ID" styleClass="column" style="width:60px">
				<h:inputText value="#{bean.queryBean.roleid}"  style="width:94%" />
			</p:column>
			<p:column headerText="订单产品ID" styleClass="column" style="width:60px">
				<h:inputText value="#{bean.queryBean.gameproductid}"  style="width:94%" />
			</p:column>
			<p:column headerText="订单ID" styleClass="column" style="width:60px">
				<h:inputText value="#{bean.queryBean.gameorderid}"  style="width:94%" />
			</p:column>
			<p:column headerText="操作" style="width:50px">
				<p:commandButton value="查询" action="#{bean.search()}" update=":data" ajax="false" />
			</p:column>
        </p:dataTable>
	</h:form>
	<br />
	<!-- 数据展示部分，包含表格和图表 -->
	<h:form id="dform">
		<div class="data" id="data">
			<p:panel id="panel1" header="查询结果" style="margin-bottom:10px;">
                <h:commandLink rendered="#{bean.result != null and bean.result.size() > 0}">
                    <p:graphicImage url="/resources/images/excel.png" height="25px" />
                    <p:dataExporter type="xls" target="dlist1" fileName="rechargeFlow-#{pageHelper.getNewDateDetailStr()}" />
                </h:commandLink>
                <p:dataTable id="dlist1" var="l" value="#{bean.result}" scrollable="true" resizableColumns="true" paginator="true" paginatorPosition="top" paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}" rowsPerPageTemplate="15,30" rows="30" style="text-align:center;">
					<p:column headerText="详细时间" styleClass="column" style="width:140px">
						<h:outputLabel value="#{l[0]}" style="width:100%" />
					</p:column>
					<p:column headerText="服务器主机名" styleClass="column" style="width:100px">
						<h:outputLabel value="#{l[1]}" style="width:100%" />
					</p:column>
					<p:column headerText="模块名" styleClass="column" style="width:50px">
						<h:outputLabel value="#{l[2]}" style="width:100%" />
					</p:column>
					<p:column headerText="游戏ID" styleClass="column" style="width:40px">
						<h:outputLabel value="#{l[3]}" style="width:100%" />
					</p:column>
					<p:column headerText="au服务器编号" styleClass="column" style="width:30px">
						<h:outputLabel value="#{l[4]}" style="width:100%" />
					</p:column>
					<p:column headerText="日志id" styleClass="column" style="width:80px">
						<h:outputLabel value="#{l[5]}" style="width:100%" />
					</p:column>
					<p:column headerText="日志类型" styleClass="column" style="width:100px">
						<h:outputLabel value="#{l[6]}"  style="width:100%"/>
					</p:column>
					<p:column headerText="订单类型" styleClass="column" style="width:100px">
						<h:outputLabel value="#{l[7].toString() == '1' ? '游戏内订单' : '直冲订单'}(#{l[7]})"  style="width:100%"/>
					</p:column>
					<p:column headerText="全用户名" styleClass="column" style="width:120px">
						<h:outputLabel value="#{l[8]}"  style="width:100%"/>
					</p:column>
					<p:column headerText="区服id" styleClass="column" style="width:80px">
						<h:outputLabel value="#{pageHelper.getServerNameById(l[9].toString())}"  style="width:100%"/>
					</p:column>
					<p:column headerText="角色id" styleClass="column" style="width:80px">
						<h:outputLabel value="#{l[10]}"  style="width:100%"/>
					</p:column>
					<p:column headerText="订单产品id" styleClass="column" style="width:100px">
						<h:outputLabel value="#{l[11]}"  style="width:100%"/>
					</p:column>
					<p:column headerText="订单产品数量" styleClass="column" style="width:70px">
						<h:outputLabel value="#{l[12]}"  style="width:100%"/>
					</p:column>
					<p:column headerText="订单货币类型" styleClass="column" style="width:90px">
						<h:outputLabel value="#{l[13]}"  style="width:100%"/>
					</p:column>
					<p:column headerText="订单总金额" styleClass="column" style="width:80px">
						<h:outputLabel value="#{l[14]}"  style="width:100%"/>
					</p:column>
					<p:column headerText="订单id" styleClass="column" style="width:120px">
						<h:outputLabel value="#{l[15]}"  style="width:100%"/>
					</p:column>
					<p:column headerText="回调地址" styleClass="column" style="width:140px">
						<h:outputLabel value="#{l[16]}"  style="width:100%"/>
					</p:column>
					<p:column headerText="扩展字段1" styleClass="column" style="width:80px">
						<h:outputLabel value="#{l[17]}"  style="width:100%"/>
					</p:column>
					<p:column headerText="扩展字段2" styleClass="column" style="width:80px">
						<h:outputLabel value="#{l[18]}"  style="width:100%"/>
					</p:column>
				</p:dataTable>
			</p:panel>
		</div>
	</h:form>
	<!-- 页脚 -->
	<div class="footer"></div>
</h:body>
</html>